package vn.pyco.prez.tapestry.model;

import java.io.File;

import org.apache.tapestry5.ValueEncoder;

public class FileValueEncoder implements ValueEncoder<File> {

	@Override
	public String toClient(File value) {
		return value.getAbsolutePath();
	}

	@Override
	public File toValue(String clientValue) {
		return new File(clientValue);
	}

}
